﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HuiGuanBSXTZ.aspx.cs" Inherits="Web.Pages.YongShui.HuiGuanBSXTZ" Theme="Default" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../../../../JS/jquery.js"></script>
    <script type="text/javascript">
        function keyEnter(index) {
            var controls = new Array();
            controls[0] = document.getElementById("txtMINGCHENG_I");
            controls[1] = document.getElementById("ddlGUANLIK_I");
            controls[2] = document.getElementById("ddlSUOSHUSF_I");
            controls[3] = document.getElementById("txtWENJIANMMGZ_I");
            var key = event.keyCode;
            if (key == 13) {
                index = index + 1;
                if (index == controls.length) {
                    index = 0;
                }
                controls[index].focus();
            }
        }
    </script>
    <style type="text/css">
        .headHide {
            display: none;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
         <asp:UpdatePanel runat="server" ID="UpdatePanel1">
              <ContentTemplate>
        <div class="tabletitle1" align="center">
            回灌表顺序调整
        </div>


        <div style="width: 99.8%;">
            <div style="width: 45%; margin: 0 auto; margin-top: 30px;">
                <table>
                    <tr>
                        <td>站点：
                        </td>
                        <td>
                            <dx:ASPxComboBox ID="cmbZhanDian" runat="server" ValueType="System.String" Width="230px" ClientSideEvents-SelectedIndexChanged="function(s,e){gvList.PerformCallback();}">
                            </dx:ASPxComboBox>
                        </td>
                    </tr>
                </table>
                <fieldset style="border: 1px solid  cornflowerblue">
                    <legend style="font-weight: bold">调动</legend>
                    <div class="left" style="border: 1px solid #666; float: left; width: 72%; overflow: auto">
                        <asp:UpdatePanel runat="server" ID="upList" UpdateMode="Conditional">
                            <ContentTemplate>
                                <dx:ASPxGridView ID="gvList" ClientInstanceName="gvList" runat="server" AutoGenerateColumns="False" KeyFieldName="VALUE" Theme="Aqua1" Width="100%"
                                    OnFocusedRowChanged="gv_FocusedRowChanged" EnableCallBacks="false" OnCustomCallback="gvList_CustomCallback">
                                    <Columns>
                                        <dx:GridViewDataTextColumn FieldName="TEXT" Caption="" Width="15%" HeaderStyle-CssClass="headHide">
                                        </dx:GridViewDataTextColumn>
                                    </Columns>
                                    <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" ProcessFocusedRowChangedOnServer="True" />
                                    <Settings VerticalScrollableHeight="400" VerticalScrollBarMode="Auto" />
                                </dx:ASPxGridView>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                    <div class="right" style="border: 0px solid red; height: 30%; width: 15%; margin-top: 80px; margin-left: 12px; float: left;">
                        <asp:UpdatePanel runat="server" ID="upListBtns" UpdateMode="Conditional">
                            <ContentTemplate>
                                <p>
                                    <dx:ASPxButton ID="btnUp" runat="server" Text="上移" UseSubmitBehavior="false" Visible="true" OnClick="btnUp_Click">
                                    </dx:ASPxButton>
                                    <p>
                                    </p>
                                    <p>
                                        <dx:ASPxButton ID="btnDown" runat="server" OnClick="btnDown_Click" Text="下移" UseSubmitBehavior="false" Visible="true">
                                        </dx:ASPxButton>
                                        <p>
                                        </p>
                                    </p>
                                </p>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </fieldset>
            </div>
        </div>
                <div style="text-align: right;">
                    <hr />
                    <dx:ASPxButton ID="btnSave" runat="server" Text="保存" UseSubmitBehavior="false" Visible="true" OnClick="btnSave_Click">
                    </dx:ASPxButton>
                    <dx:ASPxButton ID="btnCancel" runat="server" Text="放弃" UseSubmitBehavior="false" Visible="true" OnClick="btnCancel_Click">
                    </dx:ASPxButton>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>






